<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加学生</title>
</head>
<body>
<%@include file="admindex.jsp" %>
<div style="width: 70%;margin-left: 15%;">
<form action="addstudent">
<div class="input-group mb-3">
  <div class="input-group-prepend">
    <span class="input-group-text" id="basic-addon1">学号</span>
  </div>
  <input type="text" class="form-control" name="sno" placeholder="学号" aria-label="Username" aria-describedby="basic-addon1">
  </div>
  <div class="input-group mb-3">
  <div class="input-group-prepend">
    <span class="input-group-text" id="basic-addon1">姓名</span>
  </div>
  <input type="text" class="form-control" name="sname" placeholder="姓名" aria-label="Username" aria-describedby="basic-addon1">
  </div>
  <div class="input-group mb-3">
  <div class="input-group-prepend">
    <span class="input-group-text" id="basic-addon1">性别</span>
  </div>
  <input type="text" class="form-control" name="ssex" placeholder="性别" aria-label="Username" aria-describedby="basic-addon1">
  </div>
  <div class="input-group mb-3">
  <div class="input-group-prepend">
    <span class="input-group-text" id="basic-addon1">专业</span>
  </div>
  <input type="text" class="form-control" name="specialities" placeholder="所属专业" aria-label="Username" aria-describedby="basic-addon1">
  </div>
 <input class="btn btn-primary" type="submit" value="确认">

</form>
<form class="form-inline" action="batchaddstudent" method="post" enctype="multipart/form-data">
 <div class="input-group mb-3">
  <div class="input-group-prepend">
    <span class="input-group-text" id="inputGroupFileAddon01">选择表格</span>
  </div>
  <div class="custom-file">
    <input type="file" class="custom-file-input" name="file" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01">
    <label class="custom-file-label" for="inputGroupFile01">根据表格添加</label>
  </div>
</div>
  <button type="submit" class="btn btn-primary mb-2" onclick="batchadd">批量添加</button>
</form>
</div>
</body>
</html>